﻿using System;
using System.Collections.Generic;
using System.Text;
using NGuestBook.Entity;


namespace NGuestBook.IDAL
{
    /**//// <summary>
    /// 数据访问层接口-评论
    /// </summary>
    public interface ICommentDAL
    {
        /**//// <summary>
        /// 插入评论
        /// </summary>
        /// <param name="comment">评论实体类</param>
        /// <returns>是否成功</returns>
        bool Insert(CommentInfo comment);

        /**//// <summary>
        /// 删除评论
        /// </summary>
        /// <param name="id">欲删除的评论的ID</param>
        /// <returns>是否成功</returns>
        bool Delete(int id);

        /**//// <summary>
        /// 取得指定留言的全部评论
        /// </summary>
        /// <param name="messageId">指定留言的ID</param>
        /// <returns>评论实体类集合</returns>
        IList<CommentInfo> GetByMessage(int messageId);
    }
}